package system

import (
  "github.com/gin-gonic/gin"
  "livefind/api/v1"
  "livefind/middleware"
)

type CasbinRouter struct {
}

func (s *CasbinRouter) InitCasbinRouter(Router *gin.RouterGroup) {
  casbinRouter := Router.Group("casbin").Use(middleware.OperationRecord())
  var casbinApi = v1.ApiGroupApp.SystemApiGroup.CasbinApi
  {
    casbinRouter.POST("updateCasbin", casbinApi.UpdateCasbin)
    casbinRouter.POST("getPolicyPathByAuthorityId", casbinApi.GetPolicyPathByAuthorityId)
  }
}
